package com.googlecode.objectify.hbase;

import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.client.HTableFactory;
import org.apache.hadoop.hbase.client.HTableInterface;
import org.apache.hadoop.hbase.client.HTableInterfaceFactory;

/**
 *
 * @author mjaggard
 */
public class HAcidHTableFactory extends HTableFactory implements HTableInterfaceFactory
{

	@Override
	public HTableInterface createHTableInterface(Configuration config, byte[] tableName)
	{
		try
		{
			return new HAcidHTable(config, tableName);
		}
		catch (IOException ex)
		{
			ex.printStackTrace();
			throw new RuntimeException(ex);
		}
	}
}
